package com.jindy.module.machine.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jindy.framework.web.domain.server.Sys;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jindy.common.annotation.Excel;
import com.jindy.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 机器对象 t_machine
 *
 * @author ruoyi
 * @date 2022-10-14
 */
@Data
public class Machine
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "id")
    private String id;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品编号 */
    @Excel(name = "产品编号")
    private String productNo;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 机器编号 */
    @Excel(name = "机器编号")
    private String machineNo;

    /** 仓库id */
    @Excel(name = "仓库id")
    private Long warehouseId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 二维码 */
    @Excel(name = "二维码")
    private String qrImage;

    /** 关联的入库单 */
    @Excel(name = "关联的入库单")
    private Long receiptId;
    /** 0 正常 1不可用 */
    @Excel(name = "0 正常 1不可用 2使用中")
    private String status;
    /**机器信息 */
    @Excel(name = "机器信息")
    private String information;

    @Excel(name = "机器折旧费")
    private String machineDepreciation;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warehousingTime;

    /**是否打印二维码（0未打，1已打） */
    @Excel(name = "是否打印二维码")
    private String codingStatus;

    /**机器序列号 */
    @Excel(name = "机器序列号")
    private String machineSerialNumber;

    /** 初始仓库id */
//    @Excel(name = "初始仓库id")
    private Long startWarehouseId;

    /** 初始仓库名称 */
//    @Excel(name = "初始仓库名称")
    private String startWarehouseName;

    public static void main(String[] args) {
        long a=45;
        long b=60;
        long c=5;
        double d=1.0*a/b*c;
        System.out.println(d);
        BigDecimal sss=new BigDecimal("1.56");
        System.out.println(sss.intValue());
        System.out.println(sss.setScale(0,BigDecimal.ROUND_HALF_UP));
    }
}
